<template>
<div>
  <Header></Header>
  <div style="max-width: 1000px; margin:auto">
    <div style="font-size: 25px;margin-top: 45px;margin-bottom: 40px;">
      示例项目
    </div>
    <div v-for="item in this.projects">

      <ProjectBrief :item="item" :is-example="true"></ProjectBrief>
    </div>
  </div>
</div>
</template>

<script>
import Header from "@/components/Header";
import ProjectBrief from "@/components/ProjectBrief";
export default {
  name: "Example",
  components: {ProjectBrief, Header},
  data(){
    return {
      projects:[]
    }
  },
  mounted() {
    this.$axios('projects/example').then(res=>{
      this.projects = res.data
    })
    if(localStorage.getItem("token")){
      this.$axios('user/check/',{
        params:{token:window.localStorage.getItem("token")}
      }).then()
    }
  }
}
</script>

<style scoped>

</style>